package com.ruoyi.school.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 固件升级任务表VO
 */
@Data
public class FirmwareUpgradeTaskVo {

    private Long id;

    private String taskNo;

    private Long packageId;

    private Long deviceId;

    private String deviceName;

    private String deviceCode;

    private Long deviceTypeId;

    private String deviceTypeName;

    private Integer taskStatus;

    private Integer upgradeProgress;

    private String currentStep;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date scheduleTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    private String upgradeResult;

    private String errorMessage;

    private Integer retryCount;

    private Integer maxRetryCount;

    private Integer timeoutMinutes;

    private String packageVersion;

    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String updateBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    private String remark;
}
